﻿using System;
using ProjScan.Tools;
using UnityEngine;
using UnityEngine.UI;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002A3 RID: 675
	internal class RawImageAssetData : ComponentAssetData<RawImage>
	{
		// Token: 0x06001198 RID: 4504 RVA: 0x00052F9C File Offset: 0x0005119C
		public RawImageAssetData(int id, RawImage rawImage, string assetName) : base(id, assetName, rawImage)
		{
			this.isTextureNull = false;
			this.cullTransparentMesh = false;
			CanvasRenderer component = rawImage.GetComponent<CanvasRenderer>();
			bool flag = component != null;
			if (flag)
			{
				object propertyValue = AssemblyTools.I.GetPropertyValue(component, "cullTransparentMesh");
				bool flag2 = propertyValue != null;
				if (flag2)
				{
					this.cullTransparentMesh = (bool)propertyValue;
				}
			}
			this.isTextureNull = (rawImage.texture == null);
			this.initialColor = rawImage.color;
		}

		// Token: 0x04000A5D RID: 2653
		public bool isTextureNull;

		// Token: 0x04000A5E RID: 2654
		public Color initialColor;

		// Token: 0x04000A5F RID: 2655
		public bool cullTransparentMesh;
	}
}
